/*----------------------------------------------------
Class: plant_2DSOS_RDM
DESCRIPTION:
This class implements random deposition(RD) with migration(M). The lattice
is 2D solid-on-solid(SOS).

REFERENCE/BASED ON:
n_sos_2D_L200_T650.c by Gangshi and Jianqiao
sos_2d_L100_T700.c

INPUT:
* T: Temperature, K
* W: deposition rate, layer/s
OUTPUT:
* z1~z4:
* R2: roughness square, layer^2
* M2: RMS slope square, dimensionless
* H: average height, layer
STATE:
* lattice: a 2D array save the height profile.
OPTIONS:
*

AUTHOR: Xinyu Zhang (zxy1256@gmail.com)
----------------------------------------------------*/

#include "plant2D.h"
// --------------------------------------------------------------------------
plant2D::plant2D(double iXYmax,int L,double idt){
  int i,m,n;
  int idim[2];
  idim[0] = L;
  idim[1] = L;
  int odim[4] = {1,1,1,1};
  block::initialize(2,idim,4,odim,idt);

  XYmax = iXYmax;
  LatticeSize = L;
  
}
// -------------------------------------------------------------------------
plant2D::~plant2D(){
}
